package com.etone.smartaudit.wopi.utils;

import cn.hutool.core.util.RandomUtil;
import cn.hutool.core.util.ZipUtil;

import java.io.File;

public class ZipTest {

    public static void main(String[] args) {
        File[] files = new File[3];
        File zip = new File("D:\\woapi\\test\\aa.zip");
        files[1] = new File("D:\\woapi\\upload\\2");
        files[2] = new File("D:\\woapi\\upload\\1");
        files[0] = new File("D:\\woapi\\upload\\20210514");
//        ZipUtil.zip(zip, true, files);
        System.out.println("压缩完成");
        System.out.println(String.format("文件下载_%s.zip", RandomUtil.randomString(8)));
    }
}
